<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
<%@ taglib prefix="h" uri="http://java.sun.com/jsf/html"%>

<f:subview id="login" rendered="#{!loginBean.logged}">
	<div class="right"><h:outputText styleClass="redText"
		value="#{messages.login_badCredentials}"
		rendered="#{!loginBean.credentialOk}" /> <h:form>
		<table cellpadding="2" cellspacing="2">
			<tr>
				<td><h:outputText value="#{messages.login_login}" /></td>

			</tr>
			<tr>
				<td><h:inputText id="input_login" value="#{loginBean.login}"
					required="true" requiredMessage="#{messages.login_enter_login}" /><h:message styleClass="redText"
					for="input_login" /></td>

			</tr>

			<tr>
				<td><h:outputText value="#{messages.login_password}" /></td>

			</tr>

			<tr>
				<td><h:inputSecret id="input_password"
					value="#{loginBean.password}" required="true"
					requiredMessage="#{messages.login_enter_password}" /><h:message styleClass="redText"
					for="input_password" /></td>

			</tr>

			<tr>
				<td><h:commandButton value="#{messages.login_logmein}"
					action="#{loginBean.doLogin}" /></td>

			</tr>
		</table>
	</h:form> <br />
	<a href="register.jsp"><h:outputText
		value="#{messages.register_signmein}" /></a></div>
</f:subview>
